Skip to content

Conversation

@AayushSabharwal
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

get the values to save. If it returns `nothing`, then the save does not happen.
"""
function save_discretes!(integ::DEIntegrator, timeseries_idx)
function save_discretes!(integ::DEIntegrator, timeseries_idx; skip_duplicates = false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this undocumented arg?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a docstring. It's to avoid saving variables twice.

src/callbacks.jl Outdated
# Extended help
- `discrete_save_idxs`: An iterable of timeseries indexes to save after the callback triggers. MTK-only
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timeseries indexes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The index used to refer to a clock partition. This is terminology SII uses.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed to saved_clock_partitions

@ChrisRackauckas
Copy link
Member

The test failure on Core seems related.

@AayushSabharwal
Copy link
Member Author

That was a funny accident - I used find-and-replace to rename the type parameter DSI to SCP, but it also renamed TYPE*DSI*GNATURES to TYPE*SCP*SIGNATURES

@ChrisRackauckas ChrisRackauckas merged commit d314b77 into SciML:master Sep 1, 2025
47 of 63 checks passed
@AayushSabharwal AayushSabharwal deleted the as/callback-save branch September 1, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants